package org.example.blog.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;


import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Article implements Serializable {


    private static final long serialVersionUID = 1L;

    //主键id
    private Long id;

    //标题
    private String title;

    //内容
    private String  content;

    //分类id
    private Long categoryId;

    //作者id
    private Long userId;

    //浏览量
    private Long viewCount;

    //点赞量
    private Long likeCount;

    //评论数
    private Long commentCount;

    //是否置顶（0否，1是）
    private Integer isTop;

    //是否推荐
    private Integer isRecommend;

    //创建时间
    private LocalDateTime createTime;

    //更新时间
    private LocalDateTime updateTime;


}
